package com.juc.threadPoolExecutor.threadPoolExecutor2;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class Test3 {

	public static void main(String[] args) {
		MyRunnable1 myRunnable =new MyRunnable1();
		ThreadPoolExecutor executor = new ThreadPoolExecutor(7, 10, 0L, TimeUnit.SECONDS, new LinkedBlockingDeque<Runnable>());
		executor.execute(myRunnable);
		executor.shutdown();
		System.out.println("main end!");
	}
}
